package com.tedu.charging.service.bill.pojo.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "charging")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChargingProgressEsEntity implements Serializable {
    public static final long serialVersionUID = 1L;
    @Id
    private Long id;//用系统

    @Field(type = FieldType.Text)
    private String billId;

    @Field(type = FieldType.Integer)
    private Integer userId;

    @Field(type = FieldType.Integer)
    private Integer stationId;

    @Field(type = FieldType.Integer)
    private Integer gunId;

    @Field(type = FieldType.Float)
    private float temperature;

    @Field(type = FieldType.Float)
    private float chargingCapacity;

    @Field(type = FieldType.Float)
    private float totalCapacity;


    @Field(type = FieldType.Text)

    private String createTime;
}
